package bag;

public class Cylinder extends Cricle{
    double height;
    public Cylinder(double radius, double height){
        super(radius);
        this.height = height;
    }

    public Cylinder(double radius) {
        super(radius);
    }

    public double getVolume(){
        return 3.14*radius*radius*height;
    }
}
